package com.lframework.xingyun.basedata.vo.member;

import com.lframework.starter.web.core.components.validation.IsEnum;
import com.lframework.xingyun.basedata.enums.MemberAccountChangeType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class MemberAccountChangeVo {
    /**
     * 会员id
     */
    @NotNull(message = "请输入会员id！")
    @ApiModelProperty("会员id")
    private String memberId;

    /**
     * 变动类型
     */
    @NotNull(message = "请选择变动类型！")
    @IsEnum(message = "请选择变动类型！", enumClass = MemberAccountChangeType.class)
    @ApiModelProperty("变动类型")
    private Integer changeType;

    /**
     * 变动积分
     */
    @NotNull(message = "请输入变动积分！")
    @ApiModelProperty("变动积分")
    private Integer changeScore;

    /**
     * 变动原因
     */
    @ApiModelProperty("变动原因")
    private String changeReason;

}
